package run;

import behaviors.FollowLine;
import behaviors.Rotate;
import lejos.nxt.Button;
import lejos.nxt.ColorSensor;
import lejos.nxt.LCD;
import lejos.nxt.LightSensor;
import lejos.nxt.SensorPort;
import lejos.nxt.comm.RConsole;
import lejos.robotics.subsumption.Arbitrator;
import lejos.robotics.subsumption.Behavior;
import model.SBOne;

public class main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		RConsole.openBluetooth(0);
		FollowLine followLine= new FollowLine();
		Rotate rotate = new Rotate();
		Behavior b[] = {followLine, rotate};
		Arbitrator arbitrator = new Arbitrator(b);
		arbitrator.start();
//		ColorSensor csensor = new ColorSensor(SensorPort.S1);
//
//		while(true){
//			LCD.drawString("flight: " + csensor.getFloodlight() ,0 , 0);
//			LCD.drawString(" : " + csensor.getNormalizedLightValue() ,0 , 1);
//			LCD.drawString(" : " + csensor.getRawLightValue() ,0 , 2);
//			LCD.drawString(" : " + csensor.getLightValue() ,0 , 3);
//		}
	}

}
